package com.woniu.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class LessonExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public LessonExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLnoIsNull() {
            addCriterion("lno is null");
            return (Criteria) this;
        }

        public Criteria andLnoIsNotNull() {
            addCriterion("lno is not null");
            return (Criteria) this;
        }

        public Criteria andLnoEqualTo(Integer value) {
            addCriterion("lno =", value, "lno");
            return (Criteria) this;
        }

        public Criteria andLnoNotEqualTo(Integer value) {
            addCriterion("lno <>", value, "lno");
            return (Criteria) this;
        }

        public Criteria andLnoGreaterThan(Integer value) {
            addCriterion("lno >", value, "lno");
            return (Criteria) this;
        }

        public Criteria andLnoGreaterThanOrEqualTo(Integer value) {
            addCriterion("lno >=", value, "lno");
            return (Criteria) this;
        }

        public Criteria andLnoLessThan(Integer value) {
            addCriterion("lno <", value, "lno");
            return (Criteria) this;
        }

        public Criteria andLnoLessThanOrEqualTo(Integer value) {
            addCriterion("lno <=", value, "lno");
            return (Criteria) this;
        }

        public Criteria andLnoIn(List<Integer> values) {
            addCriterion("lno in", values, "lno");
            return (Criteria) this;
        }

        public Criteria andLnoNotIn(List<Integer> values) {
            addCriterion("lno not in", values, "lno");
            return (Criteria) this;
        }

        public Criteria andLnoBetween(Integer value1, Integer value2) {
            addCriterion("lno between", value1, value2, "lno");
            return (Criteria) this;
        }

        public Criteria andLnoNotBetween(Integer value1, Integer value2) {
            addCriterion("lno not between", value1, value2, "lno");
            return (Criteria) this;
        }

        public Criteria andCidIsNull() {
            addCriterion("cid is null");
            return (Criteria) this;
        }

        public Criteria andCidIsNotNull() {
            addCriterion("cid is not null");
            return (Criteria) this;
        }

        public Criteria andCidEqualTo(Integer value) {
            addCriterion("cid =", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotEqualTo(Integer value) {
            addCriterion("cid <>", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThan(Integer value) {
            addCriterion("cid >", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThanOrEqualTo(Integer value) {
            addCriterion("cid >=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThan(Integer value) {
            addCriterion("cid <", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThanOrEqualTo(Integer value) {
            addCriterion("cid <=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidIn(List<Integer> values) {
            addCriterion("cid in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotIn(List<Integer> values) {
            addCriterion("cid not in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidBetween(Integer value1, Integer value2) {
            addCriterion("cid between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotBetween(Integer value1, Integer value2) {
            addCriterion("cid not between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andBtimeIsNull() {
            addCriterion("btime is null");
            return (Criteria) this;
        }

        public Criteria andBtimeIsNotNull() {
            addCriterion("btime is not null");
            return (Criteria) this;
        }

        public Criteria andBtimeEqualTo(Date value) {
            addCriterion("btime =", value, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeNotEqualTo(Date value) {
            addCriterion("btime <>", value, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeGreaterThan(Date value) {
            addCriterion("btime >", value, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("btime >=", value, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeLessThan(Date value) {
            addCriterion("btime <", value, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeLessThanOrEqualTo(Date value) {
            addCriterion("btime <=", value, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeIn(List<Date> values) {
            addCriterion("btime in", values, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeNotIn(List<Date> values) {
            addCriterion("btime not in", values, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeBetween(Date value1, Date value2) {
            addCriterion("btime between", value1, value2, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeNotBetween(Date value1, Date value2) {
            addCriterion("btime not between", value1, value2, "btime");
            return (Criteria) this;
        }

        public Criteria andEtimeIsNull() {
            addCriterion("etime is null");
            return (Criteria) this;
        }

        public Criteria andEtimeIsNotNull() {
            addCriterion("etime is not null");
            return (Criteria) this;
        }

        public Criteria andEtimeEqualTo(Date value) {
            addCriterion("etime =", value, "etime");
            return (Criteria) this;
        }

        public Criteria andEtimeNotEqualTo(Date value) {
            addCriterion("etime <>", value, "etime");
            return (Criteria) this;
        }

        public Criteria andEtimeGreaterThan(Date value) {
            addCriterion("etime >", value, "etime");
            return (Criteria) this;
        }

        public Criteria andEtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("etime >=", value, "etime");
            return (Criteria) this;
        }

        public Criteria andEtimeLessThan(Date value) {
            addCriterion("etime <", value, "etime");
            return (Criteria) this;
        }

        public Criteria andEtimeLessThanOrEqualTo(Date value) {
            addCriterion("etime <=", value, "etime");
            return (Criteria) this;
        }

        public Criteria andEtimeIn(List<Date> values) {
            addCriterion("etime in", values, "etime");
            return (Criteria) this;
        }

        public Criteria andEtimeNotIn(List<Date> values) {
            addCriterion("etime not in", values, "etime");
            return (Criteria) this;
        }

        public Criteria andEtimeBetween(Date value1, Date value2) {
            addCriterion("etime between", value1, value2, "etime");
            return (Criteria) this;
        }

        public Criteria andEtimeNotBetween(Date value1, Date value2) {
            addCriterion("etime not between", value1, value2, "etime");
            return (Criteria) this;
        }

        public Criteria andLmoduleIsNull() {
            addCriterion("lmodule is null");
            return (Criteria) this;
        }

        public Criteria andLmoduleIsNotNull() {
            addCriterion("lmodule is not null");
            return (Criteria) this;
        }

        public Criteria andLmoduleEqualTo(String value) {
            addCriterion("lmodule =", value, "lmodule");
            return (Criteria) this;
        }

        public Criteria andLmoduleNotEqualTo(String value) {
            addCriterion("lmodule <>", value, "lmodule");
            return (Criteria) this;
        }

        public Criteria andLmoduleGreaterThan(String value) {
            addCriterion("lmodule >", value, "lmodule");
            return (Criteria) this;
        }

        public Criteria andLmoduleGreaterThanOrEqualTo(String value) {
            addCriterion("lmodule >=", value, "lmodule");
            return (Criteria) this;
        }

        public Criteria andLmoduleLessThan(String value) {
            addCriterion("lmodule <", value, "lmodule");
            return (Criteria) this;
        }

        public Criteria andLmoduleLessThanOrEqualTo(String value) {
            addCriterion("lmodule <=", value, "lmodule");
            return (Criteria) this;
        }

        public Criteria andLmoduleLike(String value) {
            addCriterion("lmodule like", value, "lmodule");
            return (Criteria) this;
        }

        public Criteria andLmoduleNotLike(String value) {
            addCriterion("lmodule not like", value, "lmodule");
            return (Criteria) this;
        }

        public Criteria andLmoduleIn(List<String> values) {
            addCriterion("lmodule in", values, "lmodule");
            return (Criteria) this;
        }

        public Criteria andLmoduleNotIn(List<String> values) {
            addCriterion("lmodule not in", values, "lmodule");
            return (Criteria) this;
        }

        public Criteria andLmoduleBetween(String value1, String value2) {
            addCriterion("lmodule between", value1, value2, "lmodule");
            return (Criteria) this;
        }

        public Criteria andLmoduleNotBetween(String value1, String value2) {
            addCriterion("lmodule not between", value1, value2, "lmodule");
            return (Criteria) this;
        }

        public Criteria andDirnameIsNull() {
            addCriterion("dirname is null");
            return (Criteria) this;
        }

        public Criteria andDirnameIsNotNull() {
            addCriterion("dirname is not null");
            return (Criteria) this;
        }

        public Criteria andDirnameEqualTo(String value) {
            addCriterion("dirname =", value, "dirname");
            return (Criteria) this;
        }

        public Criteria andDirnameNotEqualTo(String value) {
            addCriterion("dirname <>", value, "dirname");
            return (Criteria) this;
        }

        public Criteria andDirnameGreaterThan(String value) {
            addCriterion("dirname >", value, "dirname");
            return (Criteria) this;
        }

        public Criteria andDirnameGreaterThanOrEqualTo(String value) {
            addCriterion("dirname >=", value, "dirname");
            return (Criteria) this;
        }

        public Criteria andDirnameLessThan(String value) {
            addCriterion("dirname <", value, "dirname");
            return (Criteria) this;
        }

        public Criteria andDirnameLessThanOrEqualTo(String value) {
            addCriterion("dirname <=", value, "dirname");
            return (Criteria) this;
        }

        public Criteria andDirnameLike(String value) {
            addCriterion("dirname like", value, "dirname");
            return (Criteria) this;
        }

        public Criteria andDirnameNotLike(String value) {
            addCriterion("dirname not like", value, "dirname");
            return (Criteria) this;
        }

        public Criteria andDirnameIn(List<String> values) {
            addCriterion("dirname in", values, "dirname");
            return (Criteria) this;
        }

        public Criteria andDirnameNotIn(List<String> values) {
            addCriterion("dirname not in", values, "dirname");
            return (Criteria) this;
        }

        public Criteria andDirnameBetween(String value1, String value2) {
            addCriterion("dirname between", value1, value2, "dirname");
            return (Criteria) this;
        }

        public Criteria andDirnameNotBetween(String value1, String value2) {
            addCriterion("dirname not between", value1, value2, "dirname");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("`name` is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("`name` is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("`name` =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("`name` <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("`name` >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("`name` >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("`name` <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("`name` <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("`name` like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("`name` not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("`name` in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("`name` not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("`name` between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("`name` not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andLclassIsNull() {
            addCriterion("lclass is null");
            return (Criteria) this;
        }

        public Criteria andLclassIsNotNull() {
            addCriterion("lclass is not null");
            return (Criteria) this;
        }

        public Criteria andLclassEqualTo(String value) {
            addCriterion("lclass =", value, "lclass");
            return (Criteria) this;
        }

        public Criteria andLclassNotEqualTo(String value) {
            addCriterion("lclass <>", value, "lclass");
            return (Criteria) this;
        }

        public Criteria andLclassGreaterThan(String value) {
            addCriterion("lclass >", value, "lclass");
            return (Criteria) this;
        }

        public Criteria andLclassGreaterThanOrEqualTo(String value) {
            addCriterion("lclass >=", value, "lclass");
            return (Criteria) this;
        }

        public Criteria andLclassLessThan(String value) {
            addCriterion("lclass <", value, "lclass");
            return (Criteria) this;
        }

        public Criteria andLclassLessThanOrEqualTo(String value) {
            addCriterion("lclass <=", value, "lclass");
            return (Criteria) this;
        }

        public Criteria andLclassLike(String value) {
            addCriterion("lclass like", value, "lclass");
            return (Criteria) this;
        }

        public Criteria andLclassNotLike(String value) {
            addCriterion("lclass not like", value, "lclass");
            return (Criteria) this;
        }

        public Criteria andLclassIn(List<String> values) {
            addCriterion("lclass in", values, "lclass");
            return (Criteria) this;
        }

        public Criteria andLclassNotIn(List<String> values) {
            addCriterion("lclass not in", values, "lclass");
            return (Criteria) this;
        }

        public Criteria andLclassBetween(String value1, String value2) {
            addCriterion("lclass between", value1, value2, "lclass");
            return (Criteria) this;
        }

        public Criteria andLclassNotBetween(String value1, String value2) {
            addCriterion("lclass not between", value1, value2, "lclass");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}